cc.Class({
    extends: cc.Component,

    properties: {
        Menu: cc.Node,
    },

    onLoad () {
    },

    start () {

    },

    open(){
        this.node.active = true;
        this.node.getChildByName("btn").runAction(
            cc.repeatForever(
                cc.sequence(
                    cc.scaleTo(0.5, 1.1),
                    cc.scaleTo(0.5, 1)
                )
            )
        );
    },

    close(){
        this.node.active = false;
        this.node.stopAllActions();
    },

    nothank(){
        this.close();
        this.Menu.getComponent("Menu").open()
    },

    update (dt) {},
});
